import request from '@/utils/request'

// 商品运费
const userApi = {
    queryGoodsFreight: '/web/query/goods/freight/area/config', // 查询商品运费区域配置
    updateGoodsFreight: '/web/update/goods/freight/area/config', // 增删改商品运费区域配置
}
/**
 * @param parameter
 * @returns {*}
 */
// 查询商品运费区域配置
export function queryGoodsFreight(parameter){
  return request({
      url: userApi.queryGoodsFreight,
      method: 'post',
      headers: {
          'name':'queryGoodsFreight',
      },
      data: parameter,
  })
}
// 增删改商品运费区域配置
export function updateGoodsFreight(parameter){
    return request({
        url: userApi.updateGoodsFreight,
        method: 'post',
        headers: {
            'name':'updateGoodsFreight',
        },
        data: parameter,
    })
  }
 